home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_asm / masm4reo / readme < prev    next >
Encoding:
Text File  |  1985-12-11  |  2.5 KB  |  94 lines

  1.         Microsoft Macro Assembler 4.00 and Utilities
  2.                     Correction Notice
  3.  
  4.                  Utility for Redirection
  5.                     December 11, 1985
  6.  
  7.  
  8.  
  9. With pre-4.0 versions of MASM, it is possible to redirect
  10. the Assembler's output.  For example, 
  11.  
  12.        MASM example; >errors.dat
  13.  
  14. will send the Assembler's error messages to 'errors.dat',
  15. instead of to the console.  However, the above command will
  16. not redirect error messages with MASM 4.0.
  17.  
  18. MASM 4.0 sends error messages to standard error, one of the
  19. MS-DOS standard device handles.  It is not possible to
  20. redirect output from MASM 4.0 because MS-DOS does not allow
  21. redirection of standard error from the console.  This disk
  22. contains a utility which allows you to run MASM with
  23. standard handles redirected.  The files on this disk are:
  24.  
  25. WRITE.C
  26. WRITE.EXE
  27. E.C
  28. E.EXE
  29. README
  30.  
  31.  
  32. The following is a description of the files and their
  33. purpose:
  34.  
  35. WRITE.EXE
  36.  
  37. Allows you to determine where information for standard
  38. output, standard error, standard auxiliary (usually serial
  39. port), and standard printer (usually parallel port) will be
  40. directed.  The source code for the program is WRITE.C.
  41.  
  42. E.EXE
  43.  
  44. Executes a program after redirection of standard handles has
  45. taken place.  The program accepts arguments of the form:
  46.  
  47. e -r file command         stdout and stderr to file
  48. e -r #hnd command         stdout and stderr to handle hnd
  49. e -rhnd file command    handle hnd to file
  50. e -rhnd1 #hnd2 command    handle hnd1 to handle hnd2
  51.  
  52. To append in addition to redirecting, use -a instead of -r.
  53.  
  54. The standard handles are:
  55.  
  56. 0 - standard input (not useful here)
  57. 1 - standard output
  58. 2 - standard error
  59. 3 - standard auxiliary
  60. 4 - standard printer
  61.  
  62.  
  63. The following are examples of command lines:
  64.  
  65. e -r out.dat masm test,,test;
  66.  
  67. send all standard output and standard error output to the
  68. file 'out.dat'.  Note that due to the difference in the way
  69. C stream level stdout and stderr are handled, 'out.dat' may
  70. contain output in a different order from that seen on the
  71. screen.
  72.  
  73. e -r #4 masm test,,test;
  74.  
  75. send all standard output and standard error output to the
  76. standard printer
  77.  
  78. e -r1 out.dat -r2 errs.dat masm test;
  79.  
  80. -- send standard output to file 'out.dat'
  81. -- send standard error to file 'errs.dat'
  82.  
  83. e -r4 #1 masm test;
  84.  
  85. send standard printer data to standard output (console)
  86.  
  87. e -r1 nul -a2 errlog.dat -r4 out.dat masm test;
  88.  
  89. -- throw away standard output
  90. -- append standard error to errlog.dat
  91. -- send standard printer into out.dat
  92.  
  93. The source code for the program is E.C.
  94.